package com.example.sqlitedemo;

import androidx.appcompat.app.AppCompatActivity;

import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {
    private MyHelp myHelp;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        intiData();
    }
    private void intiData(){
        myHelp=new MyHelp(this,"stuInfo.db",null,1);
       //SQLiteDatabase db=myHelp.getWritableDatabase();
        //myHelp.insertStuInfo("hers","man",24);
        //myHelp.insertStuInfo("李四","man",28);
        //myHelp.insertStuInfo("王五","男",28);
        //myHelp.deleteStudent("hers");
        //myHelp.updateStudent("张三",21);
        myHelp.queryAllStu();
    }
}